-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: Remove redundant definitions in pandas.compat (filter, map, range, etc.) #25845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
assert iter_res == exp | ||
assert list_res == exp | ||
|
||
def test_range(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty much the only non-trivial change - edited some tests that would now just be testing the builtin range
/map
/filter
/zip
functions. Updated to just test the list equivalent functions, and slightly changed some variable names to better match other test conventions.
Codecov Report
@@ Coverage Diff @@
## master #25845 +/- ##
==========================================
+ Coverage 91.3% 91.31% +<.01%
==========================================
Files 173 173
Lines 53004 52974 -30
==========================================
- Hits 48397 48374 -23
+ Misses 4607 4600 -7
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #25845 +/- ##
==========================================
+ Coverage 91.3% 91.31% +<.01%
==========================================
Files 173 173
Lines 53004 52977 -27
==========================================
- Hits 48397 48376 -21
+ Misses 4607 4601 -6
Continue to review full report at Codecov.
|
thanks @jschendel |
git diff upstream/master -u -- "*.py" | flake8 --diff
Some more low hanging fruit in the Python 2 removal process. This should remove all references to the following functions in
pandas.compat
which are redundantly defined for Python 3:filter
map
range
zip
next
FileNotFoundError
ResourceWarning